package com.gdcp.service;

import com.gdcp.beans.Product;
import com.gdcp.beans.Shop;
import com.gdcp.beans.User;
import com.gdcp.common.page.PageBean;

import java.util.List;
import java.util.Map;

public interface ShopService {

    Shop queryShopInfoByShopId(Integer shop_id);

    Map<String,Object> insert(Shop shop);

    Map<String,Object> updateByShopId(Shop shop);

    int registerShop(Shop shop);

    Shop queryShopInfoByUserId(Integer id);

    List<Shop> queryByNewTime();

    int updateSaleCount(Integer id);

    int updatePopularity(Integer id);

    Map<String, Object> findPageBreakByCondition(Map<String, Object> model);

    Map<String,Object> removeByPrimaryKey(Integer[] id);

    int register(Shop shop);

    Map<String,Object> updateInformation(Shop shop);

    Shop getInformation(Integer id);

    Map<String, Object> searchInformation(Map<String, Object> param);

    PageBean<Shop> searchByShop(Integer cid, int pc, String search_key, String column, String sort);

    List<Shop> queryByAll();

}
